package edu.nf.ch02.config;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeIn;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import org.springframework.context.annotation.Configuration;

/**
 * @Author gjh
 * @Date 2025/9/17
 * @Description:
 */
@Configuration
@OpenAPIDefinition(
        info = @Info(
                title = "接口文档",
                version = "1.0",
                description = "小小商城接口文档"
        ),
        security = @SecurityRequirement(name = "JWT")
)
@SecurityScheme(
        name = "JWT",
        type = SecuritySchemeType.HTTP,
        scheme = "Bearer",
        in = SecuritySchemeIn.HEADER
)
public class ProductOpenApiConfig {
}
